import { Universe } from "wasm-game-of-life";
const pre = document.getElementById("game-of-life-canvas");
const universe = Universe.new();

const readerLoop = () => {
    pre.textContent = universe.render();
    universe.tick();
    requestAnimationFrame(readerLoop);
}
requestAnimationFrame(readerLoop);